<div class="BlockBar">
    <?php echo CHtml::activeLabel($this->model, 'config_add_title'); ?></div>
<!-- tab bar -->
<div id="tabbar-div">
    <p> <span class="<?php echo ($type == 0) ? 'tab-front' : 'tab-back';?>"><a href="<?php echo $this->createUrl('config/index/type/0');?>">全部</a></span> 
        <span class="<?php echo ($type == 1) ? 'tab-front' : 'tab-back';?>"><a href="<?php echo $this->createUrl('config/index/type/1');?>">系统配置</a></span> 
        <span class="<?php echo ($type == 2) ? 'tab-front' : 'tab-back';?>"><a href="<?php echo $this->createUrl('config/index/type/2');?>">点播配置</a></span>
        <span class="<?php echo ($type == 3) ? 'tab-front' : 'tab-back';?>"><a href="<?php echo $this->createUrl('config/index/type/3');?>">用户配置</a></span>
        <span class="<?php echo ($type == 4) ? 'tab-front' : 'tab-back';?>"><a href="<?php echo $this->createUrl('config/index/type/4');?>">下载配置</a></span>
        <span class="<?php echo ($type == 5) ? 'tab-front' : 'tab-back';?>"><a href="<?php echo $this->createUrl('config/index/type/5');?>">其他配置</a></span></p>
</div>
<!-- tab end -->
<?php $form = $this->beginWidget('CActiveForm', array('id' => 'config-form', 'enableAjaxValidation' => true)); ?>
<table cellspacing="1" cellpadding="4" class="tab">
    <tr class="row" >
        <td class="align-right" width="110" ><?php echo $form->labelEx($this->model, 'config_type'); ?>:</td>
        <td><?php echo $form->dropDownList($this->model, 'config_type', $this->model->getTypeData()); ?><?php echo $form->error($this->model, 'config_type'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($this->model, 'config_name'); ?>:</td>
        <td ><?php echo $form->textField($this->model, 'config_name', array('size' => 40, 'maxlength' => 30)); ?><?php echo $form->error($this->model, 'config_name'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($this->model, 'config_value'); ?>:</td>
        <td><?php echo $form->textField($this->model, 'config_value', array('size' => 40, 'maxlength' => 255)); ?><?php echo $form->error($this->model, 'config_value'); ?></td>
    </tr>
    <tr class="row">
        <td class="align-right"><?php echo $form->labelEx($this->model, 'config_description'); ?>:</td>
        <td><?php echo $form->textArea($this->model, 'config_description', array('cols' => 38, 'maxlength' => 250)); ?><?php echo $form->error($this->model, 'config_description'); ?></td>
    </tr>
    <tr class="rows">
        <td class="rows"></td>
        <td class="rows"><?php echo CHtml::submitButton(Yii::t('app', '提 交'), array('class' => 'btn')); ?></td>
    </tr>
</table>
<?php $this->endWidget(); ?>